package br.com.dev.tcc.view;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import br.com.dev.tcc.R;
import br.com.dev.tcc.util.alarm.AlarmUtil;

public class AlarmeActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.alarme_activity);

		final int id = getIntent().getIntExtra("id", -1);

		findViewById(R.id.btSim).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				AlarmUtil util = new AlarmUtil(AlarmeActivity.this);
				util.cancelAlarm(id);
				finish();
			}
		});
		
		findViewById(R.id.btNao).setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				finish();
			}
		});
	}
}
